<template>
  <div class="content">
    <!-- 项目案例 -->
    <h3>应用案例</h3>
    <div class="project">
      <div class="project_item" @click="goDetail(item.key)" v-for="(item, index) in data
          ">
        <div class="project_title">案例 {{ index+1 }}</div>
        <div ><span v-if="item.intruduce">{{ item.intruduce }}</span></div>
        <div class="myBox">
          {{ item.target }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { List } from './ProductData'
export default {
  data() {
    return {
      data: []
    };
  },
  created() {
    this.data = JSON.parse(JSON.stringify(List))
  },
  components: {},
  watch: {},
  methods: {
    goDetail(key) {
      this.$router.push('product_details?key=' + key)
    }
  },
  computed: {},
}
</script>

<style scoped>
.content {
  min-height: calc(100vh - 260px);
}

h3 {
  font-weight: bold;
  font-size: 32px;
  margin: 50px 0;
  text-align: center;
}

.project {
  width: 100%;
  padding: 0 10%;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* height: 800px; */
}

.project_item {
  width: 48%;
  height: 210px;
  border: 30px solid #fafafa;
  padding: 15px;
  box-sizing: border-box;
  background-color: #ffffff;
  margin-bottom: 30px;
  overflow: hidden;
}

.myBox {
  padding-bottom: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.project_item:hover {
  transform: scale(1.1);
  box-shadow: 10px 10px 10px rgba(54, 85, 165, .3);
  transition: all .5s;
  cursor: pointer;
}

.project_title {
  font-size: 18px;
  color: rgb(54, 85, 165);
  margin-bottom: 10px;
  font-weight: 500;
}
</style>